-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery basic features #1
Conversation
@rade Would you please take a look at this PR? I don't think it is worth spending much time with this until we see some interest from users, so I would leave it as it is... |
The storage backends used by Discovery are compatible | ||
with [Docker Swarm](https://github.com/docker/swarm), so | ||
you could use Discovery for keeping a Swarm connected | ||
with a Weave network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is "persistent storage" and "storage backend" the right terminology here? "Storage" seems kinda weird. And I don't see swarm calling it that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"use Discovery for keeping a Swarm connected with a Weave network." - I have no idea what this means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"clustering service" might be better, though generous
What's all the vagrant stuff about? There's no reference to it from the Makefile or the docs. |
Agreed that it doesn't require an in-depth review at this stage. I'd like @squaremo to take a look at this. |
I am still a bit baffled by the extra layer of join/leave. Is there a sensible use for a weave node joining more than one Swarm cluster? The "basic feature" would surely be "make sure the weave network extends to the same hosts as a Swarm cluster". |
Actually, is this enough for that to work -- Swarm would need to be pointed at the proxy, I would think. Perhaps I have mistaken the intended use here. |
[ -n "$WEAVE_DEBUG" ] && set -x | ||
|
||
usage() { | ||
cat <<-EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a much nicer way of outputting usage -- the weave script ought to use it too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh good, must'ave missed that going past
Anyway, I don't my bafflement should hold you up in exploring discovery. It's worth correcting the things Matthias mentioned, I think -- otherwise LGTM, merge if you like, @inercia, or I can. |
f0d381b
to
929dcc2
Compare
@rade I've just realized this cannot be used for Swarm as I had in mind. Swarm nodes register in the backend their IPs in the Weave network, while Discovery needs the external, reachable IPs. So, while this can be used for getting a Weave network topology from a discovery backend, I think it could not automatically synchronize with a Swarm discovery backend... |
So, to be clear, if one wants to use weave to network containers in a swarm cluster, one cannot get the weave peers to discover each other using this discovery feature? |
Weave peers will discover each other as long as they a) run a Discovery and b) are pointed to the same backend (eg, People could use Swarm in the Weave network, but they should use a different backend (eg, So this is not as attractive as I thought, but I still think it could be useful for users that want to keep their topologies persistent (eg, so they can automatically connect after a reboot). |
I have to admit that I am completely lost now. Can this |
I think that guide does not use Swarm in the Weave network (containers in the Swarm will be attached to Weave, but Swarm nodes do not communicate through the Weave network but directly through the external interface), and I think everything should be on top of Weave, don't you think so? |
Swarm on top of weave is a different configuration. And obviously in that situation you cannot use that swarm for weave discovery. So what's the answer to my question then? Can this discovery feature eliminate the |
In that case, Discovery could be used for eliminating that |
Simplify the Vagrant by using a Swarm token
95137ef
to
9999754
Compare
Implemented the basic feature of Discovery: to join and to leave an endpoint.